package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Permission;
import cn.wolfcode.rbac.domain.Role;
import cn.wolfcode.rbac.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    public abstract int deleteByPrimaryKey(Long id);

    public abstract int insert(Permission paramPermission);

    public abstract Permission selectByPrimaryKey(Long id);

    public abstract List<Permission> selectAll();

    public abstract int updateByPrimaryKey(Permission paramPermission);

    //public abstract int selectForCount(QueryObject paramQueryObject);

    public abstract List<Permission> selectForList(QueryObject paramQueryObject);

    //获取权限表中的表达式值
    public abstract List<String> selectAllExpression();

    //按照员工的id查询员工的信息，与权限信息
    public abstract List<String> selectByEmpId(Long paramLong);
}
